package cn.wolfcode.ss.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// 使用权限表达式的方式
@RestController
@RequestMapping("depts")
public class DepartmentController_Perm {
    @GetMapping("insert")
    public String insert(){
        return "dept-insert";
    }

    @GetMapping("update")
    public String update(){
        return "dept-update";
    }

    @GetMapping("delete")
    public String delete(){
        return "dept-delete";
    }

    @GetMapping("list")
    public String list(){
        return "dept-list";
    }
}
